package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单项
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_order_item")
@Schema(name = "TzOrderItem", description = "订单项")
public class TzOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单项ID")
    @TableId(value = "order_item_id", type = IdType.AUTO)
    private Long orderItemId;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "订单order_number")
    @TableField("order_number")
    private String orderNumber;

    @Schema(description = "产品ID")
    @TableField("prod_id")
    private Long prodId;

    @Schema(description = "产品SkuID")
    @TableField("sku_id")
    private Long skuId;

    @Schema(description = "购物车产品个数")
    @TableField("prod_count")
    private Integer prodCount;

    @Schema(description = "产品名称")
    @TableField("prod_name")
    private String prodName;

    @Schema(description = "sku名称")
    @TableField("sku_name")
    private String skuName;

    @Schema(description = "产品主图片路径")
    @TableField("pic")
    private String pic;

    @Schema(description = "产品价格")
    @TableField("price")
    private BigDecimal price;

    @Schema(description = "用户Id")
    @TableField("user_id")
    private String userId;

    @Schema(description = "商品总金额")
    @TableField("product_total_amount")
    private BigDecimal productTotalAmount;

    @Schema(description = "购物时间")
    @TableField("rec_time")
    private LocalDateTime recTime;

    @Schema(description = "评论状态： 0 未评价  1 已评价")
    @TableField("comm_sts")
    private Integer commSts;

    @Schema(description = "推广员使用的推销卡号")
    @TableField("distribution_card_no")
    private String distributionCardNo;

    @Schema(description = "加入购物车时间")
    @TableField("basket_date")
    private LocalDateTime basketDate;
}
